//
//  NetWorkManager+Extention.swift
//  MQLWeibo
//
//  Created by MQL-IT on 2016/11/11.
//  Copyright © 2016年 MQL-IT. All rights reserved.
//

import Foundation

extension NetWorkManager {
    
    func homeStatusList(compeletion:@escaping (_ response: AnyObject?, _ isSuccess: Bool)->()) {
        let urlString = "https://api.weibo.com/2/statuses/home_timeline.json"
        NetWorkManager.shared.tokenRequest(url: urlString, parameters: nil) { (response, isSuccess) in
            guard let json = response else {
                compeletion(nil, isSuccess)
                return
            }
            compeletion(json, isSuccess)
        }
    }
}
